(!) Please ask about problems and questions regarding this tutorial on answers.ros.org. Don't forget to include in your question the link to this page, the versions of your OS & ROS, and also add appropriate tags.

Running AMCL with Copernicus

Description: AMCL with Copernicus

Keywords: Copernicus

Tutorial Level: BEGINNER

Next Tutorial: Bringup Copernicus

The following tutorials illustrate how to use AMCL with Copernicus. For more details on AMCL, refer to the Navigation tutorials.

Instructions:

  • Follow the instructions under Launching a Gazebo Simulation environment tutorial, to load the Copernicus simulation

  • Launch the navigation nodes by running:
  • $ roslaunch copernicus_navigation navigation.launch
  • This will launch move_base and the amcl nodes
  • For visualization, launch the rviz tool by running:
  • $ rosrun rviz rviz
  • The configuration file, navigation.rviz, located under the copernicus_navigation -> rviz_config folder, can be loaded in rviz to setup the copernicus configured rviz environment

  • If a different map is required for the amcl node, move the map file to the “maps” folder located under copernicus_navigation package
  • In the navigation.launch file, update the name of the map file in the argument map_file to the name of the newly saved map as below:
    <arg name="map_file" default="$(find copernicus_navigation)/maps/<map_filename>.yaml"/>
  • After launching Copernicus in the desired map in rviz, use the 2D Pose Estimate option present in the top toolbar to align the laser scan of Copernicus with the map features in order to correctly position Copernicus in the map, before giving a NavGoal. Without an initial pose estimate, the Monte Carlo localization approach is unlikely to converge to the correct pose as shown in the picture below. pose_estimate

  • Use the 2D Nav Goal tool in the top toolbar to select a navigation goal in the visualizer. Ensure that the nav goal is given in a mapped section of the map
  • The whole simulation should look similar to the video below

    navigating

Wiki: Robots/Copernicus/Tutorials/Running AMCL with Copernicus (last edited 2021-06-28 06:03:29 by Botsync)